package org.example.functions;

import org.example.Parent.realInstrument;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class SpeedDashboard extends realInstrument{
    private double k=6.55;//指针数据，初始值为优
    public SpeedDashboard(double data, String path, realInstrument.Mode op, int n) {
        super(data, path, op, n);
    }

    @Override
    public void updateData() {
        super.data=k;//数据的获取
        if(k==13.549999999999976){
            k=6.55;
        }
        k+=0.1;
    }
}
